package com.neusoft.elm.po;

import java.util.Objects;

public class User {
 private String userId;
 private String password;
 private String userName;
 private Integer userSex;
 private  String userImg;
 private Integer delTag;

 public User() {
 }

 public User(String userId, String password, String userName, Integer userSex, String userImg, Integer delTag) {
  this.userId = userId;
  this.password = password;
  this.userName = userName;
  this.userSex = userSex;
  this.userImg = userImg;
  this.delTag = delTag;
 }

 public String getUserId() {
  return userId;
 }

 public void setUserId(String userId) {
  this.userId = userId;
 }

 public String getPassword() {
  return password;
 }

 public void setPassword(String password) {
  this.password = password;
 }

 public String getUserName() {
  return userName;
 }

 public void setUserName(String userName) {
  this.userName = userName;
 }

 public Integer getUserSex() {
  return userSex;
 }

 public void setUserSex(Integer userSex) {
  this.userSex = userSex;
 }

 public String getUserImg() {
  return userImg;
 }

 public void setUserImg(String userImg) {
  this.userImg = userImg;
 }

 public Integer getDelTag() {
  return delTag;
 }

 public void setDelTag(Integer delTag) {
  this.delTag = delTag;
 }

 @Override
 public String toString() {
  return "User{" +
          "userId='" + userId + '\'' +
          ", password='" + password + '\'' +
          ", userName='" + userName + '\'' +
          ", userSex=" + userSex +
          ", userImg='" + userImg + '\'' +
          ", delTag=" + delTag +
          '}';
 }

 @Override
 public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  User user = (User) o;
  return Objects.equals(userId, user.userId) &&
          Objects.equals(password, user.password) &&
          Objects.equals(userName, user.userName) &&
          Objects.equals(userSex, user.userSex) &&
          Objects.equals(userImg, user.userImg) &&
          Objects.equals(delTag, user.delTag);
 }

 @Override
 public int hashCode() {
  return Objects.hash(userId, password, userName, userSex, userImg, delTag);
 }
}
